<oc-dialog  style="width:15rem;height:16rem"
	oc-dialog-icon="lemoncelogo"
	oc-dialog-title="登陆窗口"
	oc-dialog-switch="MS">
	<form ng-submit="login()" class="grid" ng-controller="Login">
		<img ng-src="{{resourcesUrl}}/login-title-blue.png"
		    style="top:0rem;right:0;left:0;height:3rem;width:100%;border-bottom:1px solid #ccc"/>
		<label style="top:4rem;left:.3rem;">用户名：</label>
		<input type="text"
			ng-change="resetError()"
			style="top:5rem;left:.3rem;width:14.4rem;"
			ng-model="user.username"/>
		<label style="top:6.5rem;left:.3rem;">密码：</label>
		<input type="password"
			ng-change="resetError()"
			style="top:7.5rem;left:.3rem;width:14.4rem;"
			ng-model="user.password"/>
		<label style="top:9rem;left:.5rem;">验证码：</label>
		<input style="top:10rem;left:.3rem;width:6em;"
			ng-model="captcha" ng-model-options="{getterSetter:true}" />
		<img ng-src="{{ocAPI.origin}}user/captcha?time={{ocAPI.timeStamp}}"
			 ng-click="ocAPI.getNow()" style="top:9rem;right:.3rem">
  		<label ng-show="isCaptchaException"
			style="color:maroon;top:11rem;left:.3rem;">验证码输入错误</label>
  		<label ng-show="isAuthException"
			style="color:red;top:11rem;left:.3rem;">用户名或密码错误</label>
		<a href="#" style="bottom:.3rem;left:.3rem;">忘记密码？</a>
		<button oc-dialog-open="register" type="button"
		    style="right:.3rem;top:.7rem;height:1.4rem;width:4.3rem;background-color:#fff">马上注册</button>
		<button style="right:.3rem;bottom:.3rem;height:1.4rem;width:4.3rem"
			ng-disabled="captcha().length!=4">登录</button>
	</form>
</oc-dialog>
